| !== (Non - Identity) It is easier to think of the Non-Identity operand as the "not equal to" operand. It is used to compare the left expression with that on the right. If the left expression is not equal to the right expression, then a value of true will be returned form the operator. If the left expression is equal to the right expression, then a value of false is returned. It should be noted that the data type of the two expressions (left and right operands) will not be changed before they are evaluated. syntax: expressionOne !== expresionTwo EXAMPLE if ( 8000 !== 8001) { document.write("The Two Expressions are NOT Equal"); } else { document.write("The Two Expressions ARE Equal"); } This example shows where the Non-Identity operator is used most often, in the condition of an if / else statement. The two operands of the Non-Identity operator are obviously not equal, so the first of the two if / else statements will be written to the screen. If the two operands were equal, the second would be written. |